package com.texaco.chapasFutbol.resources;

import java.util.Map;

import org.andengine.opengl.texture.TextureOptions;

/**
 * Clase que un atlas
 * @author texaco
 *
 */
public class Atlas {
	
	/*
	 * Dimensiones.
	 */
	private int width;
	private int height;
	
	/*
	 * Fichero.
	 */
	private String file;
	
	/*
	 * Recursos
	 */
	private Map<String, Resource> resources;
	
	/*
	 * Opciones de la textura.
	 */
	private TextureOptions textureOption = TextureOptions.BILINEAR;

	public Atlas(int width, int height, String file, TextureOptions textureOption,Map<String, Resource> resources) {
		super();
		this.width = width;
		this.height = height;
		this.file = file;
		this.resources = resources;
		if(textureOption != null){
			this.setTextureOption(textureOption);
		}
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public String getFile() {
		return file;
	}

	public void setFile(String file) {
		this.file = file;
	}

	public Map<String, Resource> getResources() {
		return this.resources;
	}

	public void setResources(Map<String, Resource> resources) {
		this.resources = resources;
	}

	public TextureOptions getTextureOption() {
		return textureOption;
	}

	public void setTextureOption(TextureOptions textureOption) {
		this.textureOption = textureOption;
	}
}
